﻿using System.Web.Mvc;

namespace GSLMS.WebAPP.Areas.Contract
{
    public class ContractAreaRegistration : AreaRegistration
    {
        public override string AreaName
        {
            get
            {
                return "Contract";
            }
        }

        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapRoute(
              "Contract_ConTemp",
              "Contract/{controller}/{action}/{id}",
              new { action = "Index", id = UrlParameter.Optional }
          );
            context.MapRoute(
             "Contract_ConAgr",
             "Contract/{controller}/{action}/{id}",
             new { action = "Index", id = UrlParameter.Optional }
         );
            context.MapRoute(
            "Contract_LoanCol",
            "Contract/{controller}/{action}/{id}",
            new { action = "Index", id = UrlParameter.Optional }
        );
            context.MapRoute(
               "Contract_LoanExit",
               "Contract/{controller}/{action}/{id}",
               new { action = "Index", id = UrlParameter.Optional }
           );

        //    context.MapRoute(
        //        "RiskAudit_default",
        //        "RiskAudit/{controller}/{action}/{id}",
        //        new { action = "Index", id = UrlParameter.Optional }
        //    );
        }
    }
}
